//
//  LXAlertView.h
//  bgms_d
//
//  Created by lachesis-zhu on 2019/2/26.
//  Copyright © 2019 lachesis-zhu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@class LXAlertView;

@protocol LXAlertViewDelegate <NSObject>

- (void)alertView:(LXAlertView *)alertView okDown:(UIButton *)sender;
- (void)alertView:(LXAlertView *)alertView alertDown:(UIButton *)sender;

@end

NS_ASSUME_NONNULL_BEGIN

@interface LXAlertView : UIView
@property (weak, nonatomic) IBOutlet UIView *roundView;
@property (weak, nonatomic) IBOutlet UIView *boardView;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel1;
@property (weak, nonatomic) IBOutlet UILabel *titleLable2;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIButton *button1;
@property (weak, nonatomic) IBOutlet UIButton *button2;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *roundHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLength;
@property (weak, nonatomic) IBOutlet UILabel *valueLabel;
@property (weak, nonatomic) id<LXAlertViewDelegate>delegate;
@property (nonatomic, retain) AVAudioPlayer *player;
@property (nonatomic, strong) NSString *placeNum;

- (void)alertSounds;
- (void)alertVibration;
- (void)alertHidden;

@end

NS_ASSUME_NONNULL_END
